Page({
  data: {
    customCallout: {
      display: 'ALWAYS'
    },
    markers: [
      {
        longitude: 112.57,
        latitude: 22.26,
        iconPath: 'https://jinshubiao-1302079233.image.myqcloud.com/wx75574b9e0b95ecb6/case/230829cd-55aa-4076-88b1-b9591d90bd31.png?imageMogr2/thumbnail/710x/interlace/0',
        width: 40,
        height: 40,
        title: '？？？的撒发生的',
        label: {
          content: 'label',
          textAlign: 'center'
        },
        clusterId: '1',
        joinCluster: true
      },
      {
        longitude: 112.58,
        latitude: 22.26,
        clusterId: '2',
        joinCluster: true
      },
    ],
  },
  bindregionchange(e) {
    // console.log(e)
  },
  bindcontroltap(e) {
    console.log(e)
  },
  bindpoitap(e) {
    console.log(e)
  },
  bindtap(e) {
    // console.log(e)
  },
  bindupdated(e) {
    // console.log(e)
  },
  onLoad() {
    this.MapContext = wx.createMapContext('map')
    this.MapContext.initMarkerCluster({
			enableDefaultStyle: true,
			gridSize: 100,
			zoomOnClick: true,
			success: (res) => {
				console.log(res)
			},
			complete: (res) => {
				console.log(res)
			},
		})
    this.MapContext.on('MapContext', (res) => {
      console.log(res)
    })
  }
})